package com.owen.server;

import com.github.pagehelper.PageInfo;
import com.owen.pojo.Interview;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 会议记录
 */
public interface InterviewServer {

    /**
     *
     * @param pageNum 查询页数
     * @param pageSize 每页显示行数
     * @return
     */
    public PageInfo<Interview> findAll(Integer pageNum, Integer pageSize);

    public PageInfo<Interview> findByInterview(Interview interview, Integer pageNum, Integer pageSize);

    public List<Interview> findByMedium(Interview interview);

    public Interview findById(Integer id);

    public Integer deleteById(Integer id);

    public Integer deleteBatch(Integer [] ids);

    public Integer save(Interview interview);

    public Integer update(Interview interview);

    public void downloadDocx(Integer id, HttpServletResponse response) throws Exception;


}
